package com.itheima.exception;

//自定义业务异常
public class BusinessException extends RuntimeException {
    public BusinessException(String msg) {
        super(msg);
    }
    private ErrorResult errorResult;

    public BusinessException(ErrorResult errorResult) {
        super(errorResult.getErrMessage());
        this.errorResult = errorResult;
    }

}